package Homework04;

public class Staff {
    private String name;
    private double daySal;
    private int day;
    private double grade;

    public Staff(String name, double daySal, int day, double grade) {
        this.name = name;
        this.daySal = daySal;
        this.day = day;
        this.grade = grade;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDaySal() {
        return daySal;
    }

    public void setDaySal(double daySal) {
        this.daySal = daySal;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public double getGrade() {
        return grade;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }
    public void printSal(){
        System.out.println(getName() + "的工资为" + getDaySal() * getDay() * getGrade());
    }
}
